package com.ym.medical.dao;

import com.ym.medical.domain.entity.CouponReceiveRecordEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 优惠劵领取Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface CouponReceiveRecordDao extends Mapper<CouponReceiveRecordEntity> {

	/**
	 * 优惠券失效任务
	 */
	void updateCouponUseState();

	/**
	 *  两周内随访的患者集合名
	 * @param ids
	 * @return
	 */
	List<String> selectTowWeekRecord(@Param("ids") Long[] ids);
}
